/**
 * 
 * 广州锐鹏计算机科技有限公司（www.ruipengkj.com）
 * 
 * 
 * Copyright (c) 2011-2012 RUIPENGKJ.Co.Ltd. All rights reserved.
 * 
 * */
package com.ruipengkj.bean;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 说明：
 * Entity Name 商品实施阶段模板
 * @Author：高挺
 * @Date：2012-03-14
 */
@Entity
@Table(name="ruipeng_tb_TExeStageTmpl")
public class TExeStageTmpl implements Serializable{

	private static final long serialVersionUID = 1L;

	private String StageTmplID;//商品实施阶段模板编号
	
	private String Name;//阶段名称
		
	private String OperatorRole;//实施人员 角色
	
	private boolean NeedLocation;//是否需要实施场所
	
//	private String CommodityID;//商品ID
	
	private TCommodity TCommodity;//商品
	
	private boolean NeedSerShift;//是否需要轮牌
	@Id
	@Column(name = "StageTmplID",length=15)
	public String getStageTmplID() {
		return StageTmplID;
	}

	public void setStageTmplID(String stageTmplID) {
		StageTmplID = stageTmplID;
	}
	@Column(name = "Name")
	public String getName() {
		return Name;
	}

	public void setName(String name) {
		Name = name;
	}
	@Column(name = "OperatorRole")
	public String getOperatorRole() {
		return OperatorRole;
	}

	public void setOperatorRole(String operatorRole) {
		OperatorRole = operatorRole;
	}
	@Column(name = "NeedLocation")
	public boolean isNeedLocation() {
		return NeedLocation;
	}

	public void setNeedLocation(boolean needLocation) {
		NeedLocation = needLocation;
	}
	@Column(name = "NeedSerShift")
	public boolean isNeedSerShift() {
		return NeedSerShift;
	}

	public void setNeedSerShift(boolean needSerShift) {
		NeedSerShift = needSerShift;
	}
	@ManyToOne(fetch=FetchType.EAGER)
	@JoinColumn(name="CommodityID")
	public TCommodity getTCommodity() {
		return TCommodity;
	}

	public void setTCommodity(TCommodity commodity) {
		TCommodity = commodity;
	}
	
	
	
	
}
